﻿using AutoMapper;
using B.S.BasicData.Domain;
using B.S.BasicData.Write.Application.Common.Leave;
using B.S.BasicData.Write.Application.Common.Menu;
using B.S.BasicData.Write.Application.Common.Role;
using B.S.BasicData.Write.Application.Common.User;

namespace B.S.BasicData.Write
{
    public class Myautomapper:Profile
    {
        public Myautomapper()
        {
            CreateMap<CreateUserCommon, UserModel>().ReverseMap();
            CreateMap<UpdateUserCommon, UserModel>().ReverseMap();
            CreateMap<CreateRoleCommon, RoleModel>().ReverseMap();
            CreateMap<UpdateRoleCommon, RoleModel>().ReverseMap();
            CreateMap<CreateMenuCommon, menuModel>().ReverseMap();
            CreateMap<UpdateMenuCommon, menuModel>().ReverseMap();
            CreateMap<UpdateLeaveCommon, leaveModel>().ReverseMap();
            CreateMap<CreateLeaveCommon, leaveModel>().ReverseMap();
       
        }
    }
}
